# -*- coding: utf-8 -*-
# @Time    : 2021/10/19 19:36
# @Author  : super

class SchoolClass(object):

	def __init__(self, name):
		self.name = name

	def wock(self):
		print(f"这是一所{self.name}学校")

class THUSchoolClass(SchoolClass):

	def __init__(self, name, number):
		super(THUSchoolClass, self).__init__(name = name)
		self.number = number

	def wock(self):
		print(f"这是一所{self.name}学校,人数有{self.number}人")

class PKSchoolClass(SchoolClass):

	def __init__(self, name, number):
		super(PKSchoolClass, self).__init__(name = name)
		self.number = number

	def wock(self):
		print(f"这是一所{self.name}学校,人数有{self.number}人")

class personClass(object):

	def mack(self, item):
		item.wock()


thu = THUSchoolClass("清华大学", 500)
thu.wock()

pk = PKSchoolClass("北京大学", 500)
pk.wock()

per = personClass()
per.mack(pk)